home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk10.zip / PARSE2.XC < prev    next >
Text File  |  1991-10-05  |  2KB  |  70 lines

  1.  
  2. /********************************************
  3. parse2.xc
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the Awk programming language as defined in
  8. Aho, Kernighan and Weinberger, The AWK Programming Language,
  9. Addison-Wesley, 1988.
  10.  
  11. See the accompaning file, LIMITATIONS, for restrictions
  12. regarding modification and redistribution of this
  13. program in source or binary form.
  14. ********************************************/
  15.  
  16.  
  17. /* $Log:    parse2.xc,v $
  18. Revision 3.4.1.1  91/09/25  13:26:16  brennan
  19. VERSION 1.0
  20.  
  21. Revision 3.4  91/06/28  04:19:26  brennan
  22. VERSION 0.999
  23.  
  24. Revision 3.3  91/06/26  14:13:00  brennan
  25. #ifdef YYBYACC was in the wrong spot
  26.  
  27. Revision 3.2  91/06/25  07:07:23  brennan
  28. changed name to parse2.xc, so people won't try to compile it
  29.  
  30.  * Revision 3.1  91/06/07  10:28:05  brennan
  31.  * VERSION 0.995
  32.  * 
  33.  * Revision 1.1  91/06/03  15:39:31  brennan
  34.  * Initial revision
  35.  * 
  36. */
  37.  
  38. /* If using Berkeley yacc, we can put the parser table 
  39.    memory to the zmalloc pool.  This is kind of ugly and
  40.    with paged vm probably a nop, but for DOS and MINIX and ??
  41.    it frees a considerably amount of memory.
  42.  
  43.    This file is part of parse.c via
  44.       cat  y.tab.c  parse2.xc  > parse.c
  45. */
  46.  
  47. static struct yacc_mem   yacc_mem[] = 
  48. {
  49. 0 , 0 ,  /* don't remove this */
  50.  
  51. #ifndef THINK_C
  52. #ifdef   YYBYACC
  53. (PTR) yycheck, sizeof(yycheck)/8,
  54. (PTR) yytable, sizeof(yytable)/8,
  55. (PTR) yyvs , sizeof(yyvs)/8,
  56. (PTR) yyss, sizeof(yyss)/8,
  57. (PTR) yydefred, sizeof(yydefred)/8,
  58. (PTR) yydgoto, sizeof(yydgoto)/8,
  59. (PTR) yygindex, sizeof(yygindex)/8,
  60. (PTR) yylen, sizeof(yylen)/8,
  61. (PTR) yylhs, sizeof(yylhs)/8,
  62. (PTR) yyrindex, sizeof(yyrindex)/8,
  63. (PTR) yysindex, sizeof(yysindex)/8,
  64. #endif
  65. #endif
  66.  
  67. 0,0 } ;
  68.  
  69. struct yacc_mem  *yacc_memp = yacc_mem ;
  70.